const http = uni.$u.http;

// 修改会员个人信息
export const apiUserProfile = (params = {}) => http.post('/user/profile', params)

// 绑定邀请人 /api/
export const apiBindInviter = (params = {}) => http.post('/user/bindInviter', params)

// 微信登录
export const wechatLogin = (params = {}) => http.post('/user/wechat_mini', params)

// 退出登录 /api/user/logout
export const apiLogout = (data) => http.get('/user/logout', data)

// 微信获取手机号
export const apiGetPhoneNumber = (params = {}) => http.post('/user/getPhoneNumber', params)

// 发送验证码
export const apiSendSms = (params = {}) => http.post('/sms/send', params)

// 检测验证码
export const apiCheckSms = (params = {}) => http.post('/sms/check', params)